// Powerup.cpp //
#include "Powerup.h"

#include "Projectile.h"

//initially meant to allow for multiple powerups, currently only
//used for health

Powerup::Powerup(string keyname) : Item(keyname)
{
	type = keyname;
}

void Powerup::InflictBonus(GameObject* object)
{
	if(type == "ItemHealth")
		object->health = Minimum(object->health + 50, PlayerHealth);
}
